#pragma once
#include <string>
#include <iostream>
#include <stdexcept>
#include <sys/time.h>
#include <chrono>
#include <thread>
#include <atomic>
#include "FanucDefine.h"

class FanucCollector;

class FanucCollectManager
{
private:
    /* data */
public:
    FanucCollectManager(/* args */);
    ~FanucCollectManager();

    void init(const FANUC::fanucConnectInfo&);
    void start();
    void stop();

private:
    FANUC::fanucConnectInfo _connectInfo;
    std::atomic<bool> mQuit;

    FanucCollector *collector;
    std::thread threadProcess;
};

